<div class="row">
  <div class="span3 bs-docs-sidebar "> <*include file="<*$controller*>/location.tpl"*> </div>
  <div class="span8">
  <style type="text/css">
  #iframeid{ border:1px solid #CCC; padding:8px;}
  </style>
  <iframe src="/<*$controller*>/view" allowTransparency="true" scrolling="no" frameborder="0" width="100%" id="iframeid" onload="Javascript:SetCwinHeight()">
   </iframe>
   <div class="form-actions">
   <button type="button" class="btn btn-primary btn-large" onclick="window.location='/<*$controller*>/generatehtml'">生成html</button>
</div>
    </div>
</div>
<script type="text/javascript">
 function SetCwinHeight(){
  var iframeid=document.getElementById("iframeid"); //iframe id
  if (document.getElementById){
   if (iframeid && !window.opera){
    if (iframeid.contentDocument && iframeid.contentDocument.body.offsetHeight){
     iframeid.height = iframeid.contentDocument.body.offsetHeight;
    }else if(iframeid.Document && iframeid.Document.body.scrollHeight){
     iframeid.height = iframeid.Document.body.scrollHeight;
    }
   }
  }
 }
</script>

